package com.itheima.web.mapper.pms;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.vo.pms.ProductAttributeParam;
import com.itheima.vo.pms.ProductCategoryParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface PmsProductAttributeMapper extends BaseMapper<ProductAttributeParam> {
    @Select("select product_attribute_id from pms_product_category_attribute_relation where product_category_id = #{productCategoryId}")
    Long getAttributeId(@Param("productCategoryId") Long productCategoryId);
}
